﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace Md.Demo.Entity.MongoModels
{
    public class Job : DocumentBase
    {
        /// <summary>
        /// 职位名称
        /// </summary>
        public string JobName { get; set; }
        /// <summary>
        /// 所属部门 
        /// </summary>
        public string Department { get; set; }
        /// <summary>
        /// 岗位职责 
        /// </summary>
        public string JobDesc { get; set; }
        /// <summary>
        /// 岗位要求
        /// </summary>
        public string JobRequire { get; set; }
        /// <summary>
        /// 职位状态
        /// </summary>
        [BsonRepresentation(BsonType.Int32)]
        public JobStatus Status { get; set; }

    }
    public enum JobStatus
    {
        有效 = 1,
        失效 = 2,
    }
}
